package com.lwlk.zdk.model.pw;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class pwVehicleHistoryEnterpriseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public pwVehicleHistoryEnterpriseExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIsNull() {
            addCriterion("vehicle_id is null");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIsNotNull() {
            addCriterion("vehicle_id is not null");
            return (Criteria) this;
        }

        public Criteria andVehicleIdEqualTo(Integer value) {
            addCriterion("vehicle_id =", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotEqualTo(Integer value) {
            addCriterion("vehicle_id <>", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdGreaterThan(Integer value) {
            addCriterion("vehicle_id >", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("vehicle_id >=", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLessThan(Integer value) {
            addCriterion("vehicle_id <", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLessThanOrEqualTo(Integer value) {
            addCriterion("vehicle_id <=", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIn(List<Integer> values) {
            addCriterion("vehicle_id in", values, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotIn(List<Integer> values) {
            addCriterion("vehicle_id not in", values, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdBetween(Integer value1, Integer value2) {
            addCriterion("vehicle_id between", value1, value2, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("vehicle_id not between", value1, value2, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberIsNull() {
            addCriterion("vehice_number is null");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberIsNotNull() {
            addCriterion("vehice_number is not null");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberEqualTo(String value) {
            addCriterion("vehice_number =", value, "vehiceNumber");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberNotEqualTo(String value) {
            addCriterion("vehice_number <>", value, "vehiceNumber");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberGreaterThan(String value) {
            addCriterion("vehice_number >", value, "vehiceNumber");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberGreaterThanOrEqualTo(String value) {
            addCriterion("vehice_number >=", value, "vehiceNumber");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberLessThan(String value) {
            addCriterion("vehice_number <", value, "vehiceNumber");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberLessThanOrEqualTo(String value) {
            addCriterion("vehice_number <=", value, "vehiceNumber");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberLike(String value) {
            addCriterion("vehice_number like", value, "vehiceNumber");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberNotLike(String value) {
            addCriterion("vehice_number not like", value, "vehiceNumber");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberIn(List<String> values) {
            addCriterion("vehice_number in", values, "vehiceNumber");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberNotIn(List<String> values) {
            addCriterion("vehice_number not in", values, "vehiceNumber");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberBetween(String value1, String value2) {
            addCriterion("vehice_number between", value1, value2, "vehiceNumber");
            return (Criteria) this;
        }

        public Criteria andVehiceNumberNotBetween(String value1, String value2) {
            addCriterion("vehice_number not between", value1, value2, "vehiceNumber");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseIsNull() {
            addCriterion("superior_enterprise is null");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseIsNotNull() {
            addCriterion("superior_enterprise is not null");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseEqualTo(String value) {
            addCriterion("superior_enterprise =", value, "superiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseNotEqualTo(String value) {
            addCriterion("superior_enterprise <>", value, "superiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseGreaterThan(String value) {
            addCriterion("superior_enterprise >", value, "superiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseGreaterThanOrEqualTo(String value) {
            addCriterion("superior_enterprise >=", value, "superiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseLessThan(String value) {
            addCriterion("superior_enterprise <", value, "superiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseLessThanOrEqualTo(String value) {
            addCriterion("superior_enterprise <=", value, "superiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseLike(String value) {
            addCriterion("superior_enterprise like", value, "superiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseNotLike(String value) {
            addCriterion("superior_enterprise not like", value, "superiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseIn(List<String> values) {
            addCriterion("superior_enterprise in", values, "superiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseNotIn(List<String> values) {
            addCriterion("superior_enterprise not in", values, "superiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseBetween(String value1, String value2) {
            addCriterion("superior_enterprise between", value1, value2, "superiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andSuperiorEnterpriseNotBetween(String value1, String value2) {
            addCriterion("superior_enterprise not between", value1, value2, "superiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andServeStatusIsNull() {
            addCriterion("serve_status is null");
            return (Criteria) this;
        }

        public Criteria andServeStatusIsNotNull() {
            addCriterion("serve_status is not null");
            return (Criteria) this;
        }

        public Criteria andServeStatusEqualTo(Integer value) {
            addCriterion("serve_status =", value, "serveStatus");
            return (Criteria) this;
        }

        public Criteria andServeStatusNotEqualTo(Integer value) {
            addCriterion("serve_status <>", value, "serveStatus");
            return (Criteria) this;
        }

        public Criteria andServeStatusGreaterThan(Integer value) {
            addCriterion("serve_status >", value, "serveStatus");
            return (Criteria) this;
        }

        public Criteria andServeStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("serve_status >=", value, "serveStatus");
            return (Criteria) this;
        }

        public Criteria andServeStatusLessThan(Integer value) {
            addCriterion("serve_status <", value, "serveStatus");
            return (Criteria) this;
        }

        public Criteria andServeStatusLessThanOrEqualTo(Integer value) {
            addCriterion("serve_status <=", value, "serveStatus");
            return (Criteria) this;
        }

        public Criteria andServeStatusIn(List<Integer> values) {
            addCriterion("serve_status in", values, "serveStatus");
            return (Criteria) this;
        }

        public Criteria andServeStatusNotIn(List<Integer> values) {
            addCriterion("serve_status not in", values, "serveStatus");
            return (Criteria) this;
        }

        public Criteria andServeStatusBetween(Integer value1, Integer value2) {
            addCriterion("serve_status between", value1, value2, "serveStatus");
            return (Criteria) this;
        }

        public Criteria andServeStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("serve_status not between", value1, value2, "serveStatus");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseIsNull() {
            addCriterion("history_superior_enterprise is null");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseIsNotNull() {
            addCriterion("history_superior_enterprise is not null");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseEqualTo(String value) {
            addCriterion("history_superior_enterprise =", value, "historySuperiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseNotEqualTo(String value) {
            addCriterion("history_superior_enterprise <>", value, "historySuperiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseGreaterThan(String value) {
            addCriterion("history_superior_enterprise >", value, "historySuperiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseGreaterThanOrEqualTo(String value) {
            addCriterion("history_superior_enterprise >=", value, "historySuperiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseLessThan(String value) {
            addCriterion("history_superior_enterprise <", value, "historySuperiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseLessThanOrEqualTo(String value) {
            addCriterion("history_superior_enterprise <=", value, "historySuperiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseLike(String value) {
            addCriterion("history_superior_enterprise like", value, "historySuperiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseNotLike(String value) {
            addCriterion("history_superior_enterprise not like", value, "historySuperiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseIn(List<String> values) {
            addCriterion("history_superior_enterprise in", values, "historySuperiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseNotIn(List<String> values) {
            addCriterion("history_superior_enterprise not in", values, "historySuperiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseBetween(String value1, String value2) {
            addCriterion("history_superior_enterprise between", value1, value2, "historySuperiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andHistorySuperiorEnterpriseNotBetween(String value1, String value2) {
            addCriterion("history_superior_enterprise not between", value1, value2, "historySuperiorEnterprise");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeIsNull() {
            addCriterion("vehicle_type is null");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeIsNotNull() {
            addCriterion("vehicle_type is not null");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeEqualTo(String value) {
            addCriterion("vehicle_type =", value, "vehicleType");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeNotEqualTo(String value) {
            addCriterion("vehicle_type <>", value, "vehicleType");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeGreaterThan(String value) {
            addCriterion("vehicle_type >", value, "vehicleType");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeGreaterThanOrEqualTo(String value) {
            addCriterion("vehicle_type >=", value, "vehicleType");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeLessThan(String value) {
            addCriterion("vehicle_type <", value, "vehicleType");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeLessThanOrEqualTo(String value) {
            addCriterion("vehicle_type <=", value, "vehicleType");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeLike(String value) {
            addCriterion("vehicle_type like", value, "vehicleType");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeNotLike(String value) {
            addCriterion("vehicle_type not like", value, "vehicleType");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeIn(List<String> values) {
            addCriterion("vehicle_type in", values, "vehicleType");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeNotIn(List<String> values) {
            addCriterion("vehicle_type not in", values, "vehicleType");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeBetween(String value1, String value2) {
            addCriterion("vehicle_type between", value1, value2, "vehicleType");
            return (Criteria) this;
        }

        public Criteria andVehicleTypeNotBetween(String value1, String value2) {
            addCriterion("vehicle_type not between", value1, value2, "vehicleType");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}